<template>
  <div class="app-container">
    <el-config-provider :locale="locale">
      <router-view></router-view>
    </el-config-provider>
  </div>
</template>

<script setup>
import { defineComponent } from 'vue'

import zhCn from 'element-plus/lib/locale/lang/zh-cn'
let locale = zhCn

</script>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #f4f4f4;
}

.app-container {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background-color: #f4f4f4;
}

.app-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/image/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.85;
  z-index: -2;
}

.app-container::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(244, 244, 244, 0.75);
  z-index: -1;
}

.dark .app-container::after {
  background-color: rgba(17, 24, 39, 0.85);
}

.dark .app-container,
.dark html, 
.dark body {
  background-color: #111827;
}

body {
  font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: #4c4e4d;
  font-size: 16px;
  line-height: 1.6;
}

.dark body {
  color: #e5e7eb;
}

#nprogress .bar {
   background: #409eff!important;
}
</style>
